<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>插值语法</title>
  <script src="../js/vue.js"></script>
</head>

<body>
  <div id ="app"> 
    <h2>{{ message }}</h2>
    <h2>{{ message }}，李银河</h2>
    <!-- mustache语法中不可以直接写变量，也可以使用简单的表达式 -->
    <h2>{{ firstName + lastName }}</h2>
    <h2>{{ firstName + ' ' + lastName }}</h2>
    <h2>{{ firstName }} {{ lastName }}</h2>
    <!-- 页面展示：200 -->
    <h2>{{ counter * 2 }}</h2>
  </div>

  <script>
   var vm = new Vue({
    el: '#app',
    data: {
      message: "你好啊",
      firstName: "科比",
      lastName: "布莱恩特",
      counter: 100
    },
    // 计算属性
    computer: {
      // 
    },
    methods: {}
   });
  </script>
</body>

</html>